Questions
16 of 29
1Explain the difference between an in-place algorithm and an out-of-place algorithm.
2What are the risks of using Recursion? (Stack Overflow, Exponential Time)
3Explain the difference between a Data Structure and an Abstract Data Type (ADT).
4What is Time Complexity? How is it different from Space Complexity?
5What is Amortized Analysis? When is it used? (Hint: Dynamic Arrays)
6Explain Big-O notation. What do O(1), O(n), O(log n), O(n log n), O(n²) mean?
7Rank the common Big-O complexities from best to worst.
8Explain Memoization. How does it optimize recursive solutions?
9What is the difference between Best Case, Average Case, and Worst Case complexity?
10What is Recursion? How does it relate to the Call Stack?
11What are the risks of using Recursion? (Stack Overflow, Exponential Time)
12Explain the difference between an in-place algorithm and an out-of-place algorithm.
13Explain Memoization. How does it optimize recursive solutions?
14What is Amortized Analysis? When is it used? (Hint: Dynamic Arrays)
15Explain Big-O notation. What does O(1), O(n), O(log n), O(n log n), O(n^2) mean?
16Explain the difference between a Data Structure and an Abstract Data Type (ADT).
17What is Time Complexity? How is it different from Space Complexity?
18Rank the common Big-O complexities from best to worst.
19What is the difference between Static and Dynamic Data Structures?
20What is Recursion? How does it relate to the Call Stack?
21What is the Master Theorem? When can it be applied?
22What is the difference between Static and Dynamic Data Structures?
23What is the Master Theorem? When can it be applied?
24What is the difference between Best Case, Average Case, and Worst Case complexity?
25What is the difference between Linear Data Structures and Non-Linear Data Structures?
26What is a stable algorithm? Why does stability matter in sorting?
27What is the difference between Linear Data Structures and Non-Linear Data Structures?
28What is a Data Structure? Why do we need them?
29What is a stable algorithm? Why does stability matter in sorting?
16 / 29

Explain the difference between a Data Structure and an Abstract Data Type (ADT).

Data Structure vs Abstract Data Type

  1. 1

    ADT = logical/interface-level specification (what operations exist)

  2. 2

    Data Structure = physical/implementation-level realization (how operations are executed)

  3. 3

    One ADT can have multiple valid data structure implementations

  4. 4

    Example: List ADT implemented via Array List or Linked List

Difficulty: 5/10

Follow-up Questions

  • Give an example of an ADT with two different implementations and compare their trade-offs.